<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

/**
 * Set this to FALSE to disable the testing functions in the captcha controller.
 * Alternatively, you may wish to delete the last two functions from 
 * ./system/application/controllers/captcha.php
 * 
 */
$SI_config['test_mode'] = TRUE;

/**
 * The desired width of the CAPTCHA image.
 *
 */
$SI_config['image_width'] = 175;

/**
 * The desired width of the CAPTCHA image.
 *
 */
$SI_config['image_height'] = 45;

/**
 * The image format for output.<br />
 * Valid options: SI_IMAGE_PNG, SI_IMAGE_JPG, SI_IMAGE_GIF
 *
 */
$SI_config['image_type'] = SI_IMAGE_PNG;

/**
 * The length of the code to generate.
 *
 */
$SI_config['code_length'] = 4;

/**
 * The character set for individual characters in the image.
 * Letters are converted to uppercase.
 * The font must support the letters or there may be problematic 
 * substitutions.
 *
 */
$SI_config['charset'] = 'ABCDEFGHKLMNPRSTUVWYZ23456789';
//$SI_config['charset'] = '0123456789';

/**
 * Create codes using this word list
 *
 */
$SI_config['wordlist_file'] = APPPATH . 'libraries/securimage/words/words.txt';

/**
 * True to use a word list file instead of a random code
 *
 */
$SI_config['use_wordlist']  = FALSE;

/**
 * Whether to use a GD font instead of a TTF font.
 * TTF offers more support and options, but use this if your PHP doesn't support TTF.
 *
 */
$SI_config['use_gd_font'] = FALSE;

/**
 * The GD font to use.
 * Internal gd fonts can be loaded by their number.
 * Alternatively, a file path can be given and the font will be loaded 
 * from file.
 *
 */
$SI_config['gd_font_file'] = APPPATH . 'libraries/securimage/gdfonts/bubblebath.gdf';

/**
 * The approximate size of the font in pixels.
 * This does not control the size of the font because that is determined 
 * by the GD font itself.
 * This is used to aid the calculations of positioning used by this class.
 *
 */
$SI_config['gd_font_size'] = 20;

// Note: These font options below do not apply if you set $use_gd_font 
// to true with the exception of $text_color

/**
 * The path to the TTF font file to load.
 *
 */
$SI_config['ttf_file'] = APPPATH . "libraries/securimage/elephant.ttf";

/**
 * The font size.
 * Depending on your version of GD, this should be specified as the 
 * pixel size (GD1) or point size (GD2)
 *
 */
$SI_config['font_size'] = 24;

/**
 * The minimum angle in degrees, with 0 degrees being left-to-right
 * reading text.
 * Higher values represent a counter-clockwise rotation.
 * For example, a value of 90 would result in bottom-to-top reading 
 * text.
 *
 */
$SI_config['text_angle_minimum'] = -20;

/**
 * The minimum angle in degrees, with 0 degrees being left-to-right 
 * reading text.
 * Higher values represent a counter-clockwise rotation.
 * For example, a value of 90 would result in bottom-to-top reading 
 * text.
 *
 */
$SI_config['text_angle_maximum'] = 20;

/**
 * The X-Position on the image where letter drawing will begin.
 * This value is in pixels from the left side of the image.
 *
 */
$SI_config['text_x_start'] = 8;

/**
 * Letters can be spaced apart at random distances.
 * This is the minimum distance between two letters.
 * This should be <i>at least</i> as wide as a font character.
 * Small values can cause letters to be drawn over eachother.
 *
 */
$SI_config['text_minimum_distance'] = 30;

/**
 * Letters can be spaced apart at random distances.
 * This is the maximum distance between two letters.
 * This should be <i>at least</i> as wide as a font character.
 * Small values can cause letters to be drawn over eachother.
 *
 */
$SI_config['text_maximum_distance'] = 33;

/**
 * The background color for the image.
 * This should be specified in HTML hex format.
 * Make sure to include the preceding # sign!
 *
 */
$SI_config['image_bg_color'] = "#e3daed";

/**
 * The text color to use for drawing characters.
 * This value is ignored if $use_multi_text is set to true.
 * Make sure this contrasts well with the background color.
 * Specify the color in HTML hex format with preceding # sign
 *
 */
$SI_config['text_color'] = "#ff0000";

/**
 * Set to true to use multiple colors for each character.
 *
 */
$SI_config['use_multi_text'] = TRUE;

/**
 * String of HTML hex colors to use.
 * Separate each possible color with commas.
 * Be sure to precede each value with the # sign.
 *
 */
$SI_config['multi_text_color'] = "#0a68dd,#f65c47,#8d32fd";

/**
 * Set to true to make the characters appear transparent.
 *
 */
$SI_config['use_transparent_text'] = TRUE;

/**
 * The percentage of transparency, 0 to 100.
 * A value of 0 is completely opaque, 100 is completely transparent 
 * (invisble)
 *
 */
$SI_config['text_transparency_percentage'] = 15;


// Line options
/**
 * Draw vertical and horizontal lines on the image.
 *
 */
$SI_config['draw_lines'] = TRUE;

/**
 * The color of the lines drawn on the image.
 * Use HTML hex format with preceding # sign.
 *
 */
$SI_config['line_color'] = "#80BFFF";

/**
 * How far apart to space the lines from eachother in pixels.
 *
 */
$SI_config['line_distance'] = 5;

/**
 * How thick to draw the lines in pixels.
 * 1-3 is ideal depending on distance
 *
 */
$SI_config['line_thickness'] = 1;

/**
 * Set to true to draw angled lines on the image in addition to the 
 * horizontal and vertical lines.
 *
 */
$SI_config['draw_angled_lines'] = FALSE;

/**
 * Draw the lines over the text.
 * If fales lines will be drawn before putting the text on the image.
 * This can make the image hard for humans to read depending on the 
 * line thickness and distance.
 *
 */
$SI_config['draw_lines_over_text'] = FALSE;

/**
 * For added security, it is a good idea to draw arced lines over the
 * letters to make it harder for bots to segment the letters.
 * Two arced lines will be drawn over the text on each side of the 
 * image.
 * This is currently expirimental and may be off in certain configurations.
 *
 */
$SI_config['arc_linethrough'] = TRUE;

/**
 * The colors or color of the arced lines.
 * Use HTML hex notation with preceding # sign, and separate each 
 * value with a comma.
 * This should be similar to your font color for single color images.
 *
 */
$SI_config['arc_line_colors'] = "#8080ff";

/**
 * Full path to the WAV files to use to make the audio files, include
 * slash.
 * Name Files  [A-Z0-9].wav
 *
 */
$SI_config['audio_path'] = APPPATH . 'libraries/securimage/audio/';

/* End of file securimage.php */
/* Location: ./system/application/config/securimage.php */